package com.example.sprintboot.service;

import com.example.sprintboot.entity.Article;
import com.example.sprintboot.mapper.ArticeMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticeService {

    @Resource
    private ArticeMapper articeMapper;
    public List<Article> selectAll() {
      return   articeMapper.selectAll();
    }

    public void add(Article article) {
        articeMapper.add(article);
    }
}
